﻿<?php include_once 'includes/header.php'; ?>
<div id="wrap">
  <div id="main">
    <div class="top"></div>
    <div id="mainarea">
    <h2 class="title">发布联保体</h2>
      <style type="text/css">

#fixed{position:fixed;top:5em;right:0;}

.more{
    display:none;
    background-color:#fdfef9;
    height:98px;
    color:#000;
    border:#eee solid 2px;
    font-size:12px;
    padding:5px 5px;
    position:absolute;
    line-height:22px;
}
.divbox
{/*提供一个相对节点，让弹出层相对它绝对定位；*/
    height:0px;
    line-height:0;
    font-size:0;
    position:relative;
}
#groupName{
	border:0px;
}
</style>
      <div class="tabs_header">
        <ul class="tabs">
          <li class="active"> <a href="loanUnite_initCreate.action?flag=2"><span>发布联保体</span> </a> </li>
          
          <!-- 联保体修改 -->
          <li> <a href="loanUnite_toManager.action"><span>我的联保体</span> </a> </li>
          <li> <a href="Enterprise_toBusiSearch.action"><span>搜索企业</span> </a> </li>
          <li> <a href="Message_findAll.action"><span>消息中心</span> </a> </li>
        </ul>
      </div>
      
      <!--选项卡为发布联保体  -->
      
      <style type="text/css">
.nobr br {
	display: none
}
</style>
      <style type="text/css">
TABLE {
	border: 0px;
	margin: 0px;
	padding: 0px;
	font-size: 12px;
}

DIV {
	border: 0px;
	margin: 0px;
	padding: 0px;
}

.treeClass {
	height: 16px;
	width: 200px;
	font-size: 12px;
}
</style>
      <script language="javascript" type="text/javascript" src="/source/jquery-1.6.1.min.js"></script> 
      <script language="javascript" type="text/javascript" src="/source/areabank.js"></script> 
      <script language="javascript" type="text/javascript" src="/source/dtree.js"></script>
      <link rel="StyleSheet" type="text/css" href="/source/dtree.css">
      <script type="text/javascript" src="/source/yes.no.js"></script> 
      <script type="text/javascript" src="/source/ymPrompt.js"></script>
      <link rel="stylesheet" id="skin" type="text/css" href="/source/skin/qq/ymPrompt.css">
      <style type="text/css">
#fixed {
	position: fixed;
	top: 100px;
	left: 25%;
	border: #eee solid 1px
}
</style>
      <script type="text/javascript">
<!--
function creat(){
	var businessType=document.getElementsByName("businessType_array");
	var   flag   =   false; 
		for(i   =   0;i   <   businessType.length;i++){ 
		if(businessType[i].checked   ==   true){ 
		flag   =   true; 
		break; 
		} 
		} 
		if(flag   ==   false){ 
		ymPrompt.succeedInfo("请选择经营模式",300,190,null,null);
		return false;
		}
	
	if(document.getElementById("ss1").value==""){
		ymPrompt.succeedInfo("请选择省份",300,190,null,null);
		return false;
		}
	var expectLoanAmount=document.getElementById("expectLoanAmount").value;
	var p=/^[0-9]*(\.[0-9]{1,2})?$/;
		if(expectLoanAmount.length==0){
		ymPrompt.succeedInfo("请输入期望获贷额度",300,190,null,null);
		return false;
		}else if(!p.test(expectLoanAmount)){
		      ymPrompt.succeedInfo("期望获贷额度输入错误，请输入金额数,小数点后两位",300,190,null,null);
		return false;
		}   else if(parseInt(expectLoanAmount)>500){
		ymPrompt.succeedInfo("期望获贷额度不能大于500万元",300,190,null,null);
		return false;
		}
    var lastyearIncome=document.getElementById("lastyearIncome").value
		if(lastyearIncome.length==0){
		ymPrompt.succeedInfo("请输入企业上年销售收入",300,190,null,null);
		return false;
		}else if(!p.test(lastyearIncome)){
		ymPrompt.succeedInfo("销售收入输入错误，请输入金额数,小数点后两位",300,190,null,null);
		return false;
		}   else if(parseInt(lastyearIncome)>99999999){
		ymPrompt.succeedInfo("销售收入不能大于100000000万元",300,190,null,null);
		return false;
		}
		if(document.getElementById("bt343").value==""){
		ymPrompt.succeedInfo("请选择行业",300,190,null,null);
		return false;
		}
		var introduction=document.getElementById("introduction").value;
		if(introduction.length==0){
		ymPrompt.succeedInfo("请输入简介",300,190,null,null);
		return false;
		}else{
			 var intLength=0   
   			 for (var i=0;i<introduction.length;i++){   
		        if ((introduction.charCodeAt(i) < 0) || (introduction.charCodeAt(i) > 255))   
		            intLength=intLength+3   
		        else  
		            intLength=intLength+1       
		    	 
			}
			if(intLength>900){
				ymPrompt.succeedInfo("简介字数不能大于300",300,190,null,null);
				return false;	
			}	
		}
  
	 document.myForm.action="loanUnite_create.action";
		document.myForm.submit();
	}
	function publish(){
		document.form1.action="loanUnite_release.action";
	}
	function deploy(){
		ymPrompt.confirmInfo('是否确定发布？',null,null,'问询提示',function(tp){tp=='ok'?publish():''});
	}	
	function showIndustry(){
		var lll= document.getElementById("fixed");
		if(lll.style.display=="none")
		{
			lll.style.display="block";
		}
		else
		{
			lll.style.display="none";
		}	
	}
	function getRadioSelected(nodeId){
	//alert(nodeId);
		var nname = document.getElementById(nodeId).value;   //此处得到的是所选择节点的name值，根据需要，同样可得到其他的值
		document.getElementById('bt343').value =  nname;
		document.getElementById('industrys').value=nodeId;
		showIndustry();
		} 
	function hidewin(id){
		document.getElementById(id).style.display="none";
	}
//-->
</script>
      <form id="form1" name="myForm" action="loanUnite_release.action" method="post">
        <input type="hidden" name="loanUniteVO.loanUniteId" value="100080">
        <table>
          <tbody>
            <tr>
            <th width="100">联合体成员上限:</th>
              <td> 
                <select name="loanUniteVO.expectMemberCount" disabled="disabled" id="loanUniteVO_expectMemberCount">
                  <option value="3" selected="selected">3</option>
                  <option value="4">4</option>
                  <option value="5">5</option>
                  <option value="6">6</option>
                  <option value="7">7</option>
                  <option value="8">8</option>
                  <option value="9">9</option>
                  <option value="10">10</option>
                </select>
                人 </td>
                <th> 经营模式:</th>
              <td>
                <input type="checkbox" name="businessType_array" value="3" id="businessType_array-1" checked="checked" disabled="disabled">
                <label for="businessType_array-1" class="checkboxLabel">服务型</label>
                <input type="checkbox" name="businessType_array" value="2" id="businessType_array-2" disabled="disabled">
                <label for="businessType_array-2" class="checkboxLabel">贸易型</label>
                <input type="checkbox" name="businessType_array" value="1" id="businessType_array-3" disabled="disabled">
                <label for="businessType_array-3" class="checkboxLabel">生产型</label>
                <input type="checkbox" name="businessType_array" value="5" id="businessType_array-4" disabled="disabled">
                <label for="businessType_array-4" class="checkboxLabel">其他机构</label>
                <input type="checkbox" name="businessType_array" value="4" id="businessType_array-5" disabled="disabled">
                <label for="businessType_array-5" class="checkboxLabel">政府</label>
                <input type="hidden" id="__multiselect_businessType_array" name="__multiselect_businessType_array" value="" disabled="disabled"></td>
            </tr>
            <tr>
            <th> 企业所在地区: </th>
              <td>
                <!--  <div class="nobr">
						<select name="loanUniteVO.provinceCode" disabled="disabled" id="loanUniteVO_provinceCode" onchange="loanUniteVO_provinceCodeRedirect(this.options.selectedIndex)">


</select>

<br />
<select name="cityCode" disabled="disabled" id="cityCode">
</select>
<script type="text/javascript">
    var loanUniteVO_provinceCodeGroup = new Array(0 + 0);
    for (i = 0; i < (0 + 0); i++)
    loanUniteVO_provinceCodeGroup[i] = new Array();


    var loanUniteVO_provinceCodeTemp = document.myForm.cityCode;
    loanUniteVO_provinceCodeRedirect(0);
    function loanUniteVO_provinceCodeRedirect(x) {
    	var selected = false;
        for (m = loanUniteVO_provinceCodeTemp.options.length - 1; m >= 0; m--) {
            loanUniteVO_provinceCodeTemp.options[m] = null;
        }

        for (i = 0; i < loanUniteVO_provinceCodeGroup[x].length; i++) {
            loanUniteVO_provinceCodeTemp.options[i] = new Option(loanUniteVO_provinceCodeGroup[x][i].text, loanUniteVO_provinceCodeGroup[x][i].value);
                        if (loanUniteVO_provinceCodeTemp.options[i].value == '150100') {
                            loanUniteVO_provinceCodeTemp.options[i].selected = true;
                            selected = true;
                        }
         }

        if ((loanUniteVO_provinceCodeTemp.options.length > 0) && (! selected)) {
           	loanUniteVO_provinceCodeTemp.options[0].selected = true;
        }
    }
</script>
 
					</div>-->
                
                <input type="hidden" id="sspro" value="150000">
                <input type="hidden" id="sscity" value="150100">
                <input type="hidden" id="ssarea" value="150102">
                <select name="loanUniteVO.provinceCode" id="ss1" style="width: 60px" disabled="disabled">
                  <option value="">省份</option>
                  <option value="150000" selected="selected">内蒙古自治区</option>
                  <option value="210000">辽宁省</option>
                  <option value="110000">北京市</option>
                  <option value="120000">天津市</option>
                  <option value="130000">河北省</option>
                  <option value="140000">山西省</option>
                  <option value="330000">浙江省</option>
                  <option value="310000">上海市</option>
                  <option value="320000">江苏省</option>
                  <option value="350000">福建省</option>
                  <option value="360000">江西省</option>
                  <option value="370000">山东省</option>
                  <option value="340000">安徽省</option>
                  <option value="220000">吉林省</option>
                  <option value="230000">黑龙江省</option>
                  <option value="420000">湖北省</option>
                  <option value="430000">湖南省</option>
                  <option value="440000">广东省</option>
                  <option value="450000">广西壮族自治区</option>
                  <option value="410000">河南省</option>
                  <option value="530000">云南省</option>
                  <option value="520000">贵州省</option>
                  <option value="540000">西藏自治区</option>
                  <option value="610000">陕西省</option>
                  <option value="620000">甘肃省</option>
                  <option value="630000">青海省</option>
                  <option value="460000">海南省</option>
                  <option value="500000">重庆市</option>
                  <option value="510000">四川省</option>
                  <option value="640000">宁夏回族自治区</option>
                  <option value="650000">新疆维吾尔自治区</option>
                  <option value="710000">台湾省</option>
                  <option value="810000">香港特别行政区</option>
                  <option value="820000">澳门特别行政区</option>
                </select>
                <select name="loanUniteVO.cityCode" id="ss2" style="width: 80px" disabled="disabled">
                  <option value="150100" selected="selected">呼和浩特市</option>
                  <option value="150200">包头市</option>
                  <option value="150300">乌海市</option>
                  <option value="150400">赤峰市</option>
                  <option value="150500">通辽市</option>
                  <option value="150600">鄂尔多斯市</option>
                  <option value="150700">呼伦贝尔市</option>
                  <option value="150800">巴彦淖尔市</option>
                  <option value="150900">乌兰察布市</option>
                  <option value="152200">兴安盟</option>
                  <option value="152500">锡林郭勒盟</option>
                  <option value="152600">乌兰察布盟</option>
                  <option value="152900">阿拉善盟</option>
                </select>
                <select name="loanUniteVO.areaCode" id="ss3" style="width:80px" disabled="disabled">
                  <option value="150102" selected="selected">新城区</option>
                  <option value="150103">回民区</option>
                  <option value="150104">玉泉区</option>
                  <option value="150105">赛罕区</option>
                  <option value="150121">土默特左旗</option>
                  <option value="150122">托克托县</option>
                  <option value="150123">和林格尔县</option>
                  <option value="150124">清水河县</option>
                  <option value="150125">武川县</option>
                </select></td>
                <th>期望获贷额度:</th>
              <td> 
                <input type="text" name="loanUniteVO.expectLoanAmount" value="123.0" readonly="readonly" disabled="true">
                万元 </td>
            </tr>
            <tr>
            <th>企业所属行业:</th>
              <td> 
                <input id="bt343" name="industrysname" type="text" class="selebg1" value="中西医结合医院" readonly="readonly" disabled="true"></td>
                <th>企业上年销售收入:</th>
              <td> 
                <input type="text" name="loanUniteVO.lastyearIncome" value="123.0" readonly="readonly" disabled="true">
                万元 </td>
            </tr>
            <tr>
            <th>我的推荐机构:</th>
              <td colspan="2"> 
                <select name="loanUniteVO.recommendOrg" disabled="disabled" id="loanUniteVO_recommendOrg">
                  <option value="3" selected="selected">全球网注册</option>
                  <option value="2">建行报名</option>
                  <option value="1">华东林权交易所</option>
                  <option value="7">义商</option>
                  <option value="6">中兴担保</option>
                  <option value="4">手工录入</option>
                </select></td>
            </tr>
            <tr>
            <th>简介:</th>
              <td colspan="2"><textarea rows="6" cols="30" wrap="true" id="introduction" name="loanUniteVO.introduction"  readonly="readonly" disabled="true">123</textarea></td>
            </tr>
            <tr>
              <td colspan="2" align="center"><input type="submit" value="发布" class="submit"></td>
            </tr>
          </tbody>
        </table>
      </form>
      
      <!--  创建联保体--> 
      
      <script type="text/javascript">
<!--
	var divObject ; 
function createXMLHttpRequest() { 
  //alert("1"); 
if (window.ActiveXObject) { 
  return  new ActiveXObject("Microsoft.XMLHTTP"); 
} else { 
  if (window.XMLHttpRequest) { 
  return new XMLHttpRequest(); 
  } 
} 
} 

function sendRequest(url,showAreaId){//第1个是提交的url，第2个是定义要将服务器返回的信息显示在哪个id域里 
var xmlHttp = createXMLHttpRequest(); 
url += "&sessionId="+parseInt(Math.random()*(10000000)); 
//alert(url); 
xmlHttp.onreadystatechange = function(){ 
  if(xmlHttp.readyState==4){ 
   if(xmlHttp.status==200){ 
    //alert(xmlHttp.responseText); 
    document.getElementById(showAreaId).innerHTML=xmlHttp.responseText; 
   }else{ 
    alert('请求的页面异常'+xmlHttp.responseText); 
    return; 
   } 
  }  
}; 

xmlHttp.open("GET",url, false);  
xmlHttp.send(null); 
} 
//-->
</script> 
      <script type="text/javascript"> 
  function treeAcion(nodeId,level){//id:父节点id ; level：节点层次 
   var node = document.getElementById('child'+nodeId); 
   var varImg = document.getElementById("varImg"+nodeId);  
   if(node.style.display == "none"){ 
    sendRequest("/new/loanunite/treeAction.jsp?id="+nodeId+"&level="+level,"child"+nodeId);//向页面treeAction.jsp异步请求节点的下级节点，并将下级节点显示在id为"child"+nodeId的层里 
    if(node.innerHTML != ""){  //有下级时才显示  
     node.style.display = "" ; 
     if(varImg!=null)
     varImg.innerHTML="<img  src='image/dtree_img/minus.gif'/>" ;//更改节点前的图片 
    }    
   }else{ 
    node.style.display = "none" ; 
    varImg.innerHTML="<img  src='image/dtree_img/plus.gif'/>";//更改节点前的图片 
   }   
   return false ; 
  } 
</script> 
    </div>
    <div class="bot"></div>
  </div>
  <?php include_once 'includes/sidebar_group.php'; ?>
</div>
